﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Dagger : BaseWeapon
{
    public override string Name => "Dagger";

    protected override void Attack()
    {
        animator.Play("Attack", 0, 0f);
        Debug.Log("短剑攻击");
    }

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.CompareTag("Enemy"))
        {
            Debug.Log("攻击到敌人");
        }
    }
}
